package bud.mobile.service;

import java.util.List;

import bud.vo.ChatDTO;
import bud.vo.CommentMemberDTO;
import bud.vo.CommentShopDTO;
import bud.vo.FriendDTO;
import bud.vo.MemberDTO;
import bud.vo.ShopDTO;

public interface IMobileMemberService {
	public enum MemberResult {OK, Failed, EmailDuplicated, INVALIDPASSWORD}
	
	public MemberResult insertMember(MemberDTO member);
	public MemberResult deleteMember(MemberDTO member);
	public MemberResult updateMember(MemberDTO member);
	public MemberDTO getMember(Integer mem_no);
	public MemberDTO getMemberByEmail(String mem_email);
	
	public ShopDTO getShop(Integer sh_no);
	public List<ShopDTO> getShopList();
	
	public List<CommentShopDTO> getCommentShop(int cs_ref_key);
	public int insertCommentShop(CommentShopDTO commentShop);
	public int deleteCommentShop(int cs_no);
	
	public List<CommentMemberDTO> getCommentMember(int cm_ref_key);
	public int insertCommentMember(CommentMemberDTO memberShop);
	public int deleteCommentMember(int cm_no);
	
	public MemberResult insertFriend(FriendDTO friend);
	public List<FriendDTO> getRequestFriendList(Integer mem_no);
	public MemberResult updateFriend(FriendDTO friend);
	public MemberResult deleteFriend(FriendDTO friend);
	public boolean getIsRequestFriend(FriendDTO friend);
	
	public List<ChatDTO> getChat(ChatDTO chat);
	public MemberResult insertChat(ChatDTO chat);
	public ChatDTO getRecentChat(ChatDTO chat);
}
